package com.aneliya.io;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.SocketTimeoutException;

import com.aneliya.model.Message;

public interface IStreamStrategy {
	public void setOutputStream(OutputStream outputStream);
	public void setInputStream(InputStream inputStream);
	
	public Message readMessage() throws IOException, SocketTimeoutException;
	public void writeMessage(Message message) throws IOException;
	
	public void initialize();

}
